package com.baomidou.springwind.test.IO;

import java.io.*;

/**
 * Created by Administrator on 2017/2/25.
 */
public class FormattedMemoryInput {
    public static void main(String[] args) throws IOException {
        try {


            DataInputStream inputStream = new DataInputStream(new ByteArrayInputStream(BufferedInputFile.
                    read("F:\\code\\SpringWind\\SpringWind\\src\\main\\java\\com\\baomidou\\springwind\\test\\IO\\BufferedInputFile.java").getBytes()));
            int i = 0;

            while (true) {
                System.out.print((char) inputStream.read());
            }
        } catch (EOFException e) {
            e.printStackTrace();
        }
    }
}
